ChangedFromPrev
Document ShellThe
ChangedFromPrev
method returns a Boolean value that indicates whether this draft contains any changes from the previous draft.
ODBoolean ChangedFromPrev ();
- return value
kODTrue
if this draft contains any changes from the previous draft, otherwisekODFalse
.DISCUSSION
The document shell or container application calls this method to see whether this draft contains changes from the previous draft; if so, the draft must be notified so that it can save these changes. If this draft contains no changes since it was last saved, it is said to be clean and this method returns false; if it contains changes, it is said to be dirty and this method returns true.You can call the
SetChangedFromPrev
method when your part's content has changed; this marks the draft as dirty so that content changes will be saved.Note that a draft cannot be marked clean after it has been marked dirty. However, you can call the
RemoveChanges
method to remove all the changes from this draft.SEE ALSO
TheODDraft::RemoveChanges
method (page 176).
TheODDraft::SetChangedFromPrev
method (page 184).
Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help